package situ.autoweter.dao;
import java.util.List;

import situ.autoweter.common.Assist;
import situ.autoweter.entity.SySurcharge;
import org.apache.ibatis.annotations.*;

/**
 * SySurcharge的Dao接口
 * 
 * @author 
 *
 */
@Mapper
public interface SySurchargeDao {

	/**
	 * 获得SySurcharge数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * 
	 * @param assist
	 * @return
	 */
	long getSySurchargeRowCount(Assist assist);
	
	/**
	 * 获得SySurcharge数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * 
	 * @param assist
	 * @return
	 */
	List<SySurcharge> selectSySurcharge(Assist assist);
	/**
	 * 通过SySurcharge的id获得SySurcharge对象
	 * 
	 * @param id
	 * @return
	 */
	SySurcharge selectSySurchargeById(Object id);
	
	/**
	 * 获得一个SySurcharge对象,以参数SySurcharge对象中不为空的属性作为条件进行查询,返回符合条件的第一条
	 * 
	 * @param obj
	 * @return
	 */
	SySurcharge selectSySurchargeObjSingle(SySurcharge obj);
	
	/**
	 * 获得一个SySurcharge对象,以参数SySurcharge对象中不为空的属性作为条件进行查询
	 * 
	 * @param obj
	 * @return
	 */
	List<SySurcharge> selectSySurchargeByObj(SySurcharge obj);

	/**
	 * 插入SySurcharge到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertSySurcharge(SySurcharge value);
	
	/**
	 * 插入SySurcharge中属性值不为null的数据到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertNotNullSySurcharge(SySurcharge value);
	
	/**
	 * 批量插入SySurcharge到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertSySurchargeByBatch(List<SySurcharge> value);
	/**
	 * 通过SySurcharge的id删除SySurcharge
	 * 
	 * @param id
	 * @return
	 */
	int deleteSySurchargeById(Object id);
	
	/**
	 * 通过辅助工具Assist的条件删除SySurcharge
	 * 
	 * @param assist
	 * @return
	 */
	int deleteSySurchargeByAssist(Assist assist);
	
	/**
	 * 通过SySurcharge的id更新SySurcharge中的数据,包括null值
	 * 
	 * @param enti
	 * @return
	 */
	int updateSySurchargeById(SySurcharge enti);
	
	/**
	 * 通过SySurcharge的id更新SySurcharge中属性不为null的数据
	 * 
	 * @param enti
	 * @return
	 */
	int updateNotNullSySurchargeById(SySurcharge enti);
	
	/**
	 * 通过辅助工具Assist的条件更新SySurcharge中的数据,包括null值
	 * 
	 * @param value
	 * @param assist
	 * @return
	 */
	int updateSySurcharge(@Param("enti") SySurcharge value, @Param("assist") Assist assist);
	
	/**
	 * 通过辅助工具Assist的条件更新SySurcharge中属性不为null的数据
	 * 
	 * @param value
	 * @param assist
	 * @return
	 */
	int updateNotNullSySurcharge(@Param("enti") SySurcharge value, @Param("assist") Assist assist);
}